package com.zeny.express.pbl.config;

import javax.annotation.Resource;
import javax.sql.DataSource;

import org.junit.Before;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.test.context.TestExecutionListeners;
import org.springframework.test.context.transaction.TransactionalTestExecutionListener;

/**
 * 主数据Service测试基类
 * 
 * @author zhuwei
 * @date 2013年8月31日 下午9:45:39
 */
@TestExecutionListeners(TransactionalTestExecutionListener.class)
public class BaseServiceTestCase4MdmDB extends BaseServiceTestCase {

	/**
	 * spring jdbcTemplate
	 */
	protected JdbcTemplate jdbcTemplate;

	/**
	 * 注入主数据DB
	 */
	@Resource(name = "dataSource_mdm")
	private DataSource dataSource;

	@Before
	public void init() {
		this.jdbcTemplate = new JdbcTemplate(dataSource);
	}

}
